package com.stylefeng.guns.rest.user;

import com.alibaba.dubbo.config.annotation.Reference;
import com.stylefeng.guns.api.user.UserService;
import org.springframework.stereotype.Component;

@Component
public class Client {

    @Reference(interfaceClass = UserService.class)
    private UserService userService;

    public void run(){
        userService.login("admin","password");
    }
}
